<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/jsp/common/inc.jsp"%>
<title>交款流水查询</title>
<script type="text/javascript">
	var datagrid;
	$(function() {
		datagrid = $("#grid").datagrid({
			url : "${pageContext.request.contextPath}/jkls/datagrid",
			striped : true,
			rownumbers : true,
			pagination : true,
			singleSelect : true,
			fitColumns : false,
			idField : "id",
			pagesize : 10,
			pageList : [ 10, 20, 30 ],
			toolbar : "#toolbar",
			columns : [ [ {
				width : 100,
				title : "分店",
				field : "branch",
				formatter : function(value, rowData, rowIndex) {
					return value.branchName;
				}
			}, {
				width : 100,
				title : "交款流水号",
				field : "jklsh"
			}, {
				width : 100,
				title : "姓名",
				field : "xm",
			}, {
				width : 100,
				title : "交款时间",
				field : "jksj"
			}, {
				width : 115,
				title : "开始时间",
				field : "startDate"
			}, {
				width : 115,
				title : "结束时间",
				field : "endDate"
			}, {
				width : 100,
				title : "应交现金",
				field : "yjxj"
			}, {
				width : 100,
				title : "实交现金",
				field : "sjxj"
			}, {
				width : 100,
				title : "应交雅酷",
				field : "yizp"
			}, {
				width : 100,
				title : "实交雅酷",
				field : "sjzp"
			}, {
				width : 100,
				title : "应交微信",
				field : "yjxyk"
			}, {
				width : 100,
				title : "实交微信",
				field : "sjxyk"
			},{
				width : 100,
				title : "应交储值卡",
				field : "yjhyk"
			},{
				width : 100,
				title : "实交储值卡",
				field : "sjhyk"
			},{
				width : 100,
				title : "应交餐券",
				field : "yjgwq"
			},{
				width : 100,
				title : "实交餐券",
				field : "sjgwq"
			},{
				width : 100,
				title : "应交团购",
				field : "pay04"
			},{
				width : 100,
				title : "实交团购",
				field : "sjPay04"
			},{
				width : 100,
				title : "应交淘点点",
				field : "pay02"
			},{
				width : 100,
				title : "实交淘点点",
				field : "sjPay02"
			},{
				width : 100,
				title : "备注",
				field : "note",
			}, {
				width : 100,
				title : "是否审核",
				field : "auditStatus",
				formatter : function(value, rowData, rowIndex) {
					if (value == "Y") {
						return "已审核";
					} else {
						return "未审核";
					}
				}
			} ] ]
		});
	});
	// 查询
	function searchFun() {
		var params = sy.serializeObject($("#search_form"));
		console.info(params);

		var p = $("#search_form").serialize();
		datagrid.datagrid("load", params);
	}
	// 清空查询条件
	function clearFun() {
		$("#search_form").find("input").val("");
		datagrid.datagrid("load", {});
	}

	// 初始化查询条件
	$(
			function() {
				$("#jksjStr").datebox();

				$("#fdId")
						.combobox(
								{
									url : "${pageContext.request.contextPath}/commonController/branchList",
									valueField : 'id',
									textField : 'branchName',
									width : 100
								})
			})
</script>
</head>
<body class="easyui-layout" data-options="fit:true,border:false">
	<div id="toolbar" style="display: none;">
		<form id="search_form">
			<table>
				<tr>
					<td>交款时间</td>
					<td><input id="jksjStr" name="jksjStr" /></td>
					<td>分店</td>
					<td><input id="fdId" name="fdId" /></td>
				</tr>
				<tr>
					<td>交款流水号</td>
					<td><input id="jksjStr" name="jksjStr" /></td>
					<td></td>
					<td></td>
					<td><a href="#" class="easyui-linkbutton"
						onclick="searchFun()">查询</a></td>
					<td><a href="#" class="easyui-linkbutton" onclick="clearFun()">清空</a></td>
				</tr>


			</table>
		</form>
	</div>
	<div data-options="region:'center',fit:true,border:false">
		<table id="grid" data-options="fit:true,border:false"></table>
	</div>
</body>
</html>